package 工厂方法模式.LoggerFactory;

public class LoggerFactoryMain {
    public static void main(String[] args) {
        //获取文件记录工厂
        LoggerFactory fileLoggerFactory = new FileLoggerFactory();
        //获取文件记录
        fileLoggerFactory.createLogger();

        //获取数据库记录工厂
        LoggerFactory dataBaseLoggerFactory = new DataBaseLoggerFactory();
        //获取数据库纪录
        dataBaseLoggerFactory.createLogger();


        //增加的控制台记录工厂
        ConsoleLoggerFactory consoleLoggerFactory = new ConsoleLoggerFactory();
        consoleLoggerFactory.createLogger();
    }
}
